---------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Userdata\Shared\Dofiles\DoAnalysis\PlacementCandidacy\Output\FigureA8.log
  log type:  text
 opened on:   2 Oct 2020, 10:42:27

.   
.   use "E:\ProjData\PlacementCandidacy\utp-DataMainSample.dta", clear

. 
.   ivdesc InvAr Enklav EnklavInvAr, reps(1000)
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  InvAr
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     1988.955     .0022971            1            0
complier         1988.961     .0107508      .215474     .0016616
never-taker      1988.974     .0051042      .393207     .0011714
always-taker     1988.933     .0054472      .391319     .0011765
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt             .799         .201
co vs at             .021         .979
at vs nt                1            0
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0000

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(100) name(g1, replace) xscale(range(1988.8 1989.2)) xlabel(1988.8 1989.0 1989.2) msize(sma
> ll) ///
>                       graphregion(color(white))  ylabel(1 "Sample" 2 "Compliers" 3 "Never-takers" 4 "Always-takers") title("Year of Immigra
> tion", size(medium))

.   
.   ivdesc InvAlder Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  InvAlder
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     30.44009     .0142468            1            0
complier         31.23378     .0659631      .215474       .00164
never-taker      31.00347     .0318753      .393207     .0011457
always-taker     29.43696     .0288742      .391319     .0011369
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt             .001         .999
co vs at                0            1
at vs nt                1            0
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0000

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(75) ylabel(, nolabels) name(g2, replace)  xscale(range(28 32)) xlabel(28 30 32) ///
>   graphregion(color(white)) title("Age at Immigration", size(medium)) msize(small)

. 
.   ivdesc TidISverige Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  TidISverige
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     14.32117     .0119825            1            0
complier         12.27857     .0570273      .215474      .001631
never-taker      12.78057      .026991      .393207     .0011646
always-taker     16.99393     .0256975      .391319     .0011806
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt                1            0
co vs at                1            0
at vs nt                0            1
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.1463

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(75) ylabel(, nolabels) name(g3, replace)  xscale(range(11 18)) xlabel(11 15 18) ///
>   graphregion(color(white)) title("Years in Country", size(medium)) msize(small)

. 
.   ivdesc AlderValDag Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  AlderValDag
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     44.79218     .0187236            1            0
complier         43.52359     .0822951      .215474     .0016757
never-taker       43.7892     .0398901      .393207     .0011883
always-taker     46.49853     .0377593      .391319     .0011855
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt             .995         .005
co vs at                1            0
at vs nt                0            1
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0000

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(75)  xscale(range(42 48)) xlabel(42 45 48) name(g4, replace) msize(small) ///
>   graphregion(color(white)) title("Age at Election", size(medium)) ylabel(1 "Sample" 2 "Compliers" 3 "Never-takers" 4 "Always-takers")

. 
.   ivdesc UtbAr_InvAr Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  UtbAr_InvAr
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     10.80342     .0045003            1            0
complier         10.51062     .0214268      .215474     .0016348
never-taker      10.93892     .0105433      .393207     .0011609
always-taker     10.82849     .0101646      .391319     .0011519
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt                1            0
co vs at                1            0
at vs nt                1            0
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0065

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(100) name(g5, replace)  xscale(range(10 11.5)) xlabel(10(.5)11.5) ///
>                       graphregion(color(white))  ylabel(1 "Sample" 2 "Compliers" 3 "Never-takers" 4 "Always-takers") msize(small) title("Ye
> ars of Education", size(medium))

.   
.   ivdesc Gift_InvAr Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  Gift_InvAr
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     .5852174     .0008371            1            0
complier          .578332     .0038908      .215474     .0016428
never-taker       .609216      .001935      .393207     .0011359
always-taker     .5648943     .0019399      .391319     .0011394
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt                1            0
co vs at             .004         .996
at vs nt                1            0
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0000

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(75) ylabel(, nolabels) name(g6, replace)  xscale(range(.54 .62)) xlabel(.54 .58 .62) ///
>   graphregion(color(white)) msize(small) title("Married", size(medium))

. 
.   ivdesc Barn0_15_InvAr Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  Barn0_15_InvAr
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     1.034126     .0022437            1            0
complier         1.077507     .0105476      .215474     .0016143
never-taker      1.024823     .0047713      .393207     .0011738
always-taker     1.019586     .0053784      .391319     .0011505
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt                0            1
co vs at                0            1
at vs nt             .773         .227
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0000

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(75) name(g7, replace)  xscale(range(.9 1.2)) xlabel(.8 1.0 1.2) ///
>   graphregion(color(white)) ylabel(1 "Sample" 2 "Compliers" 3 "Never-takers" 4 "Always-takers") msize(small) title("Children", size(medium)
> )

.   
.   ivdesc Kvinna Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  Kvinna
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     .4183546     .0008248            1            0
complier         .4846652      .004026      .215474     .0016695
never-taker       .448686     .0018998      .393207     .0011863
always-taker      .351364     .0017552      .391319     .0011656
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt                0            1
co vs at                0            1
at vs nt                1            0
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0000

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(75) name(g8, replace)  xscale(range(.3 .6)) xlabel(.25 .4 .55) ///
>   graphregion(color(white)) ylabel(, nolabels) msize(small) title("Female", size(medium))

.   
.   gen aStorlek_Kom_InvAr = Storlek_Kom_InvAr/1000

.   
.   ivdesc aStorlek_Kom_InvAr Enklav EnklavInvAr, reps(1000) 
(running ivdesc_calc on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Variable:  aStorlek_Kom_InvAr
----------------------------------------------------------------
                     Mean     Boot.-SE   Proportion     Boot.-SE
----------------------------------------------------------------
whole sample     137.8861     .3253025            1            0
complier         141.1296     1.577288      .215474      .001655
never-taker        188.92       .93257      .393207     .0011832
always-taker     84.81993     .5501409      .391319     .0011461
----------------------------------------------------------------

Bootstrapped p-values:
--------------------------------------
                Pr(T < t)    Pr(T > t)
--------------------------------------
co vs nt                1            0
co vs at                0            1
at vs nt                1            0
--------------------------------------

Balance test: H0: E[X|Z=0]=E[X|Z=1]
Pr(|T| > |t|) = 0.0000

.   matrix C = r(ivdesc)'

.   coefplot matrix(C), se(C[2]) levels(95) fxsize(75) name(g9, replace) title("Municipality Size", size(medium))  ///
>   graphregion(color(white)) ylabel(, nolabels)  xscale(range(50 250)) xlabel(50 150 250) msize(small)

.   
.   graph combine g1 g2 g9 g7 g6 g8 g5, graphregion(color(white)) col(3)

.   graph export "`output'\FigureA8.png", replace
(note: file C:\Userdata\Shared\Dofiles\DoAnalysis\PlacementCandidacy\Output\FigureA8.png not found)
(file C:\Userdata\Shared\Dofiles\DoAnalysis\PlacementCandidacy\Output\FigureA8.png written in PNG format)

.   
.   log close
      name:  <unnamed>
       log:  C:\Userdata\Shared\Dofiles\DoAnalysis\PlacementCandidacy\Output\FigureA8.log
  log type:  text
 closed on:   2 Oct 2020, 13:42:47
---------------------------------------------------------------------------------------------------------------------------------------------
